package cn.sdormitory.homepage.dao;

import cn.sdormitory.homepage.vo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface HomePageDao {

    List<ClassAbsenceVO> findClassAbsenceList(String accessDate);

    List<DormitoryAbsenceVO> findDormitoryAbsenceList(@Param("startedToday") String startedToday,
                                                      @Param("endedToday") String endedToday);

    List<ClassHygieneVO> findClassHygieneList(String checkDate);

    List<DormitoryHygieneVO> findDormitoryHygieneList(String checkDate);

    List<PersonalHygieneVO> findExcellentPersonalHygieneList(String checkDate);

    List<PersonalHygieneVO> findPoorPersonalHygieneList(String checkDate);

    List<ClassRepairVO> findClassRepairList(@Param("startedToday") String startedToday,
                                            @Param("endedToday") String endedToday);

    List<DormitoryRepairVO> findDormitoryRepairList(@Param("startedToday") String startedToday,
                                                    @Param("endedToday") String endedToday);
}
